.class public abstract Lcom/instagram/android/fragment/fg;
.super Lcom/instagram/e/b/b;
.source "SearchFragment.java"

# interfaces
.implements Lcom/instagram/a/b;


# instance fields
.field private Z:Landroid/widget/Button;

.field protected a:Z

.field private aa:Landroid/view/View;

.field private ab:Lcom/facebook/b/a/j;

.field protected b:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

.field private c:Lcom/facebook/b/a/k;

.field private d:Ljava/lang/String;

.field private e:Z

.field private f:Landroid/view/View;

.field private g:Landroid/widget/ListView;

.field private h:Landroid/view/View;

.field private i:Landroid/widget/Button;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 31
    invoke-direct {p0}, Lcom/instagram/e/b/b;-><init>()V

    .line 44
    iput-boolean v1, p0, Lcom/instagram/android/fragment/fg;->a:Z

    .line 45
    const-string v0, ""

    iput-object v0, p0, Lcom/instagram/android/fragment/fg;->d:Ljava/lang/String;

    .line 46
    iput-boolean v1, p0, Lcom/instagram/android/fragment/fg;->e:Z

    .line 333
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/fragment/fg;)Landroid/widget/ListView;
    .locals 1
    .parameter

    .prologue
    .line 31
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->g:Landroid/widget/ListView;

    return-object v0
.end method

.method static synthetic a(Lcom/instagram/android/fragment/fg;Ljava/lang/String;)Ljava/lang/String;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 31
    iput-object p1, p0, Lcom/instagram/android/fragment/fg;->d:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic a(Lcom/instagram/android/fragment/fg;Lcom/instagram/android/fragment/fm;Ljava/lang/CharSequence;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 31
    invoke-direct {p0, p1, p2}, Lcom/instagram/android/fragment/fg;->a(Lcom/instagram/android/fragment/fm;Ljava/lang/CharSequence;)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/fragment/fg;Ljava/lang/CharSequence;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 31
    invoke-direct {p0, p1}, Lcom/instagram/android/fragment/fg;->b(Ljava/lang/CharSequence;)V

    return-void
.end method

.method private a(Lcom/instagram/android/fragment/fm;Ljava/lang/CharSequence;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 285
    invoke-virtual {p0}, Lcom/instagram/android/fragment/fg;->X()Lcom/instagram/android/fragment/fm;

    move-result-object v0

    if-ne v0, p1, :cond_0

    .line 295
    :goto_0
    return-void

    .line 289
    :cond_0
    invoke-direct {p0}, Lcom/instagram/android/fragment/fg;->af()Lcom/instagram/android/fragment/aj;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/instagram/android/fragment/aj;->a(Lcom/instagram/android/fragment/fm;)V

    .line 290
    invoke-direct {p0}, Lcom/instagram/android/fragment/fg;->af()Lcom/instagram/android/fragment/aj;

    move-result-object v0

    invoke-virtual {v0, p2}, Lcom/instagram/android/fragment/aj;->a(Ljava/lang/CharSequence;)V

    .line 293
    const-string v0, ""

    iput-object v0, p0, Lcom/instagram/android/fragment/fg;->d:Ljava/lang/String;

    .line 294
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->b:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    iget-object v1, p0, Lcom/instagram/android/fragment/fg;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/instagram/ui/widget/searchedittext/SearchEditText;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method

.method private af()Lcom/instagram/android/fragment/aj;
    .locals 1

    .prologue
    .line 70
    invoke-virtual {p0}, Lcom/instagram/android/fragment/fg;->o()Landroid/support/v4/app/Fragment;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/fragment/aj;

    return-object v0
.end method

.method private ag()V
    .locals 5

    .prologue
    const/4 v1, 0x1

    const/4 v2, 0x0

    .line 177
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->h:Landroid/view/View;

    sget v3, Lcom/facebook/aw;->row_search_edit_text:I

    invoke-virtual {v0, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    iput-object v0, p0, Lcom/instagram/android/fragment/fg;->b:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    .line 178
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->b:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    iget-object v3, p0, Lcom/instagram/android/fragment/fg;->d:Ljava/lang/String;

    invoke-virtual {v0, v3}, Lcom/instagram/ui/widget/searchedittext/SearchEditText;->setText(Ljava/lang/CharSequence;)V

    .line 179
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->b:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    iget-object v3, p0, Lcom/instagram/android/fragment/fg;->d:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v3

    invoke-virtual {v0, v3}, Lcom/instagram/ui/widget/searchedittext/SearchEditText;->setSelection(I)V

    .line 180
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->b:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    new-instance v3, Lcom/instagram/android/fragment/fl;

    invoke-direct {v3, p0}, Lcom/instagram/android/fragment/fl;-><init>(Lcom/instagram/android/fragment/fg;)V

    invoke-virtual {v0, v3}, Lcom/instagram/ui/widget/searchedittext/SearchEditText;->setOnFilterTextListener(Lcom/instagram/ui/widget/searchedittext/b;)V

    .line 181
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->b:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/fg;->Z()I

    move-result v3

    invoke-virtual {v0, v3}, Lcom/instagram/ui/widget/searchedittext/SearchEditText;->setHint(I)V

    .line 183
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    iget-object v3, p0, Lcom/instagram/android/fragment/fg;->b:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    invoke-interface {v0, v3}, Lcom/instagram/b/c;->a(Landroid/widget/TextView;)V

    .line 185
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->h:Landroid/view/View;

    sget v3, Lcom/facebook/aw;->layout_button_group_view_switcher_button_tags:I

    invoke-virtual {v0, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/instagram/android/fragment/fg;->i:Landroid/widget/Button;

    .line 187
    iget-object v3, p0, Lcom/instagram/android/fragment/fg;->i:Landroid/widget/Button;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/fg;->X()Lcom/instagram/android/fragment/fm;

    move-result-object v0

    sget-object v4, Lcom/instagram/android/fragment/fm;->a:Lcom/instagram/android/fragment/fm;

    if-ne v0, v4, :cond_0

    move v0, v1

    :goto_0
    invoke-virtual {v3, v0}, Landroid/widget/Button;->setSelected(Z)V

    .line 188
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->i:Landroid/widget/Button;

    new-instance v3, Lcom/instagram/android/fragment/fi;

    invoke-direct {v3, p0}, Lcom/instagram/android/fragment/fi;-><init>(Lcom/instagram/android/fragment/fg;)V

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 199
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->h:Landroid/view/View;

    sget v3, Lcom/facebook/aw;->layout_button_group_view_switcher_button_users:I

    invoke-virtual {v0, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/instagram/android/fragment/fg;->Z:Landroid/widget/Button;

    .line 201
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->Z:Landroid/widget/Button;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/fg;->X()Lcom/instagram/android/fragment/fm;

    move-result-object v3

    sget-object v4, Lcom/instagram/android/fragment/fm;->b:Lcom/instagram/android/fragment/fm;

    if-ne v3, v4, :cond_1

    :goto_1
    invoke-virtual {v0, v1}, Landroid/widget/Button;->setSelected(Z)V

    .line 202
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->Z:Landroid/widget/Button;

    new-instance v1, Lcom/instagram/android/fragment/fj;

    invoke-direct {v1, p0}, Lcom/instagram/android/fragment/fj;-><init>(Lcom/instagram/android/fragment/fg;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 212
    return-void

    :cond_0
    move v0, v2

    .line 187
    goto :goto_0

    :cond_1
    move v1, v2

    .line 201
    goto :goto_1
.end method

.method private ah()V
    .locals 3

    .prologue
    const/16 v2, 0x8

    .line 298
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/android/fragment/fg;->e:Z

    .line 300
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->aa:Landroid/view/View;

    sget v1, Lcom/facebook/aw;->row_search_for_x_container:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 301
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->aa:Landroid/view/View;

    sget v1, Lcom/facebook/aw;->row_search_for_x_divider:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 302
    return-void
.end method

.method static synthetic b(Lcom/instagram/android/fragment/fg;)Lcom/instagram/android/fragment/aj;
    .locals 1
    .parameter

    .prologue
    .line 31
    invoke-direct {p0}, Lcom/instagram/android/fragment/fg;->af()Lcom/instagram/android/fragment/aj;

    move-result-object v0

    return-object v0
.end method

.method private b(Ljava/lang/CharSequence;)V
    .locals 5
    .parameter

    .prologue
    const/4 v3, 0x1

    const/4 v4, 0x0

    .line 305
    iput-boolean v3, p0, Lcom/instagram/android/fragment/fg;->e:Z

    .line 307
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->aa:Landroid/view/View;

    sget v1, Lcom/facebook/aw;->row_search_for_x_container:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/view/View;->setVisibility(I)V

    .line 308
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->aa:Landroid/view/View;

    sget v1, Lcom/facebook/aw;->row_search_for_x_divider:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/view/View;->setVisibility(I)V

    .line 309
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->aa:Landroid/view/View;

    sget v1, Lcom/facebook/aw;->row_search_for_x_textview:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/fg;->getContext()Landroid/content/Context;

    move-result-object v1

    sget v2, Lcom/facebook/ba;->search_for_x:I

    new-array v3, v3, [Ljava/lang/Object;

    aput-object p1, v3, v4

    invoke-virtual {v1, v2, v3}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 311
    return-void
.end method

.method static synthetic c(Lcom/instagram/android/fragment/fg;)V
    .locals 0
    .parameter

    .prologue
    .line 31
    invoke-direct {p0}, Lcom/instagram/android/fragment/fg;->ah()V

    return-void
.end method


# virtual methods
.method protected abstract X()Lcom/instagram/android/fragment/fm;
.end method

.method protected abstract Y()Landroid/widget/BaseAdapter;
.end method

.method protected abstract Z()I
.end method

.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 3
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v2, 0x0

    .line 129
    sget v0, Lcom/facebook/ax;->fragment_search:I

    invoke-virtual {p1, v0, p2, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/fragment/fg;->f:Landroid/view/View;

    .line 130
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->f:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 132
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->f:Landroid/view/View;

    const v1, 0x102000a

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/instagram/android/fragment/fg;->g:Landroid/widget/ListView;

    .line 134
    sget v0, Lcom/facebook/ax;->row_search_header:I

    iget-object v1, p0, Lcom/instagram/android/fragment/fg;->g:Landroid/widget/ListView;

    invoke-virtual {p1, v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/fragment/fg;->h:Landroid/view/View;

    .line 135
    invoke-direct {p0}, Lcom/instagram/android/fragment/fg;->ag()V

    .line 137
    sget v0, Lcom/facebook/ax;->row_search_for_x:I

    iget-object v1, p0, Lcom/instagram/android/fragment/fg;->g:Landroid/widget/ListView;

    invoke-virtual {p1, v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/fragment/fg;->aa:Landroid/view/View;

    .line 138
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->aa:Landroid/view/View;

    const-string v1, "TAG_ROW_FOOTER_SEARCH"

    invoke-virtual {v0, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 140
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->g:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/instagram/android/fragment/fg;->h:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->addHeaderView(Landroid/view/View;)V

    .line 141
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->g:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/instagram/android/fragment/fg;->aa:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->addFooterView(Landroid/view/View;)V

    .line 143
    iget-boolean v0, p0, Lcom/instagram/android/fragment/fg;->e:Z

    if-eqz v0, :cond_0

    .line 144
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->d:Ljava/lang/String;

    invoke-direct {p0, v0}, Lcom/instagram/android/fragment/fg;->b(Ljava/lang/CharSequence;)V

    .line 147
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->f:Landroid/view/View;

    return-object v0
.end method

.method public a()Lcom/instagram/a/a;
    .locals 1

    .prologue
    .line 216
    new-instance v0, Lcom/instagram/android/fragment/fk;

    invoke-direct {v0, p0}, Lcom/instagram/android/fragment/fk;-><init>(Lcom/instagram/android/fragment/fg;)V

    return-object v0
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 4
    .parameter

    .prologue
    .line 98
    invoke-super {p0, p1}, Lcom/instagram/e/b/b;->a(Landroid/os/Bundle;)V

    .line 101
    new-instance v0, Lcom/facebook/b/a/k;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/fg;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/facebook/b/a/k;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/instagram/android/fragment/fg;->c:Lcom/facebook/b/a/k;

    .line 102
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->c:Lcom/facebook/b/a/k;

    invoke-virtual {v0}, Lcom/facebook/b/a/k;->a()Lcom/facebook/b/a/i;

    move-result-object v0

    const-string v1, "BROADCAST_UPDATED_SEARCHES"

    new-instance v2, Lcom/instagram/android/fragment/fn;

    const/4 v3, 0x0

    invoke-direct {v2, p0, v3}, Lcom/instagram/android/fragment/fn;-><init>(Lcom/instagram/android/fragment/fg;Lcom/instagram/android/fragment/fh;)V

    invoke-interface {v0, v1, v2}, Lcom/facebook/b/a/i;->a(Ljava/lang/String;Lcom/facebook/d/a;)Lcom/facebook/b/a/i;

    move-result-object v0

    invoke-interface {v0}, Lcom/facebook/b/a/i;->a()Lcom/facebook/b/a/j;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/fragment/fg;->ab:Lcom/facebook/b/a/j;

    .line 106
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->ab:Lcom/facebook/b/a/j;

    invoke-interface {v0}, Lcom/facebook/b/a/j;->b()V

    .line 107
    return-void
.end method

.method public a(Landroid/view/View;Landroid/os/Bundle;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 172
    invoke-super {p0, p1, p2}, Lcom/instagram/e/b/b;->a(Landroid/view/View;Landroid/os/Bundle;)V

    .line 173
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->g:Landroid/widget/ListView;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/fg;->Y()Landroid/widget/BaseAdapter;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 174
    return-void
.end method

.method protected abstract a(Landroid/widget/AdapterView;I)V
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;I)V"
        }
    .end annotation
.end method

.method public a(Ljava/lang/CharSequence;)V
    .locals 2
    .parameter

    .prologue
    .line 91
    const-string v0, ""

    iput-object v0, p0, Lcom/instagram/android/fragment/fg;->d:Ljava/lang/String;

    .line 92
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->b:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    invoke-virtual {v0, p1}, Lcom/instagram/ui/widget/searchedittext/SearchEditText;->setText(Ljava/lang/CharSequence;)V

    .line 93
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->b:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    invoke-interface {p1}, Ljava/lang/CharSequence;->length()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/instagram/ui/widget/searchedittext/SearchEditText;->setSelection(I)V

    .line 94
    return-void
.end method

.method protected abstract a(Ljava/lang/String;)V
.end method

.method protected abstract aa()Landroid/widget/Filter;
.end method

.method public ab()V
    .locals 1

    .prologue
    .line 74
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->b:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    invoke-virtual {v0}, Lcom/instagram/ui/widget/searchedittext/SearchEditText;->d()V

    .line 75
    return-void
.end method

.method public ac()V
    .locals 1

    .prologue
    .line 78
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->b:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    invoke-virtual {v0}, Lcom/instagram/ui/widget/searchedittext/SearchEditText;->c()V

    .line 79
    return-void
.end method

.method public ad()V
    .locals 2

    .prologue
    .line 82
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->f:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 83
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->b:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    invoke-virtual {v0}, Lcom/instagram/ui/widget/searchedittext/SearchEditText;->e()V

    .line 84
    return-void
.end method

.method public ae()V
    .locals 2

    .prologue
    .line 87
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->f:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 88
    return-void
.end method

.method protected b(Ljava/lang/String;)V
    .locals 2
    .parameter

    .prologue
    .line 314
    invoke-static {p1}, Lcom/instagram/n/i;->b(Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    .line 315
    iget-object v1, p0, Lcom/instagram/android/fragment/fg;->b:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    invoke-virtual {v1}, Lcom/instagram/ui/widget/searchedittext/SearchEditText;->clearFocus()V

    .line 318
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 324
    :goto_0
    return-void

    .line 322
    :cond_0
    invoke-virtual {p0, v0}, Lcom/instagram/android/fragment/fg;->a(Ljava/lang/String;)V

    .line 323
    invoke-direct {p0}, Lcom/instagram/android/fragment/fg;->ah()V

    goto :goto_0
.end method

.method public d(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 111
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->g:Landroid/widget/ListView;

    new-instance v1, Lcom/instagram/android/fragment/fh;

    invoke-direct {v1, p0}, Lcom/instagram/android/fragment/fh;-><init>(Lcom/instagram/android/fragment/fg;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 123
    invoke-super {p0, p1}, Lcom/instagram/e/b/b;->d(Landroid/os/Bundle;)V

    .line 124
    return-void
.end method

.method protected e(I)V
    .locals 1
    .parameter

    .prologue
    .line 245
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->g:Landroid/widget/ListView;

    invoke-virtual {v0, p1}, Landroid/widget/ListView;->setSelection(I)V

    .line 246
    return-void
.end method

.method public g_()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 152
    invoke-super {p0}, Lcom/instagram/e/b/b;->g_()V

    .line 154
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->g:Landroid/widget/ListView;

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 155
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->b:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    invoke-virtual {v0, v2}, Lcom/instagram/ui/widget/searchedittext/SearchEditText;->setOnFilterTextListener(Lcom/instagram/ui/widget/searchedittext/b;)V

    .line 156
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->i:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 157
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->Z:Landroid/widget/Button;

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 159
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/fragment/fg;->b:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    invoke-interface {v0, v1}, Lcom/instagram/b/c;->b(Landroid/widget/TextView;)V

    .line 161
    iput-object v2, p0, Lcom/instagram/android/fragment/fg;->f:Landroid/view/View;

    .line 162
    iput-object v2, p0, Lcom/instagram/android/fragment/fg;->g:Landroid/widget/ListView;

    .line 163
    iput-object v2, p0, Lcom/instagram/android/fragment/fg;->h:Landroid/view/View;

    .line 164
    iput-object v2, p0, Lcom/instagram/android/fragment/fg;->aa:Landroid/view/View;

    .line 165
    iput-object v2, p0, Lcom/instagram/android/fragment/fg;->b:Lcom/instagram/ui/widget/searchedittext/SearchEditText;

    .line 166
    iput-object v2, p0, Lcom/instagram/android/fragment/fg;->i:Landroid/widget/Button;

    .line 167
    iput-object v2, p0, Lcom/instagram/android/fragment/fg;->Z:Landroid/widget/Button;

    .line 168
    return-void
.end method

.method public y()V
    .locals 1

    .prologue
    .line 328
    invoke-super {p0}, Lcom/instagram/e/b/b;->y()V

    .line 330
    iget-object v0, p0, Lcom/instagram/android/fragment/fg;->ab:Lcom/facebook/b/a/j;

    invoke-interface {v0}, Lcom/facebook/b/a/j;->c()V

    .line 331
    return-void
.end method
